import {patch} from './vdom/patch'
function mountComponent (vm) {
    // vnode
    vm._update(vm._render());
}

function lifecycleMixin (Vue) {
    Vue.prototype._update = function (vnode) {
        const vm = this;
        patch(vm.$el, vnode);

    }
}

export {
    lifecycleMixin,
    mountComponent
}